package com.cloudbroker.bcs.platform.ltb.middle.service.impl;

import com.cloudbroker.bcs.platform.ltb.middle.dao.LoginAuthorizationDAO;
import com.cloudbroker.bcs.platform.ltb.middle.entity.LoginAuthorization;
import com.cloudbroker.bcs.platform.ltb.middle.service.LoginAuthorizationService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;


/**
 * Created by lili19289 on 2016/8/23.
 */
@Service
public class LoginAuthorizationServiceImpl implements LoginAuthorizationService {

    @Resource
    private LoginAuthorizationDAO loginAuthorizationDAO;

    @Override
    public String getLtbKey(String ltb_uid) {
        LoginAuthorization loginAuthorization = new LoginAuthorization();
        loginAuthorization.setLtb_uid(ltb_uid);
        return loginAuthorizationDAO.queryKey(loginAuthorization);
    }
}
